//
//  MSPrensetView.m
//  觅尚
//
//  Created by No.8 on 2019/3/20.
//  Copyright © 2019 No.8. All rights reserved.
//

#import "MSPrensetView.h"

@implementation MSPrensetView
/** 返回按钮*/
- (UIButton *)backButton {
    if (!_backButton) {
        _backButton = [[UIButton alloc] initWithFrame:CGRectMake(40 * px, 100 * px, 80 * px, 100 * px)];
        [_backButton setImage:[UIImage imageNamed:@"左箭头"] forState:UIControlStateNormal];
        [self addSubview:_backButton];
    }
    return _backButton;
}

/** 返回按钮*/
- (UIButton *)stepButton {
    if (!_stepButton) {
        _stepButton = [[UIButton alloc] initWithFrame:CGRectMake(ScreenWidth - 220 * px, _backButton.y, 180 * px, _backButton.height)];
        [_stepButton setTitle:@"下一步" forState:UIControlStateNormal];
        _stepButton.titleLabel.font = [UIFont systemFontOfSize:SYRealValue(35 / 2)];
        [_stepButton setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
        [self addSubview:_stepButton];
    }
    return _stepButton;
}
/** 登录标题*/
- (UILabel *)title {
    if (!_title) {
        _title = [[UILabel alloc] init];
        _title.frame = CGRectMake(150 * px, 300 * px, 400 * px, 70 * px);
        _title.text  = @"完善个人信息";
        _title.textColor = [UIColor whiteColor];
        _title.font = [UIFont boldSystemFontOfSize:SYRealValue(38 / 2)];
        [self addSubview:_title];
        
    }
    return _title;
}

- (id)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        
        [self CreateSubView];
    }
    return self;
}
- (void)CreateSubView{
    
    self.backgroundColor = [UIColor clearColor];
    
}

@end
